﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Computer_Manager.DTO
{
    public class DTO_categories
    {
        private int _id_cat;

        public int id_cat {
            get { return _id_cat; }
            set { _id_cat = value; }
        }

        private string _codes_cat;

        public string codes_cat
        {
            get { return _codes_cat; }
            set { _codes_cat = value; }
        }

        private string _name_cat;

        public string name_cat
        {
            get { return _name_cat; }
            set { _name_cat = value; }
        }


        private int _parent_id;

        public int parent_id
        {
            get { return _parent_id; }
            set { _parent_id = value; }
        }

        public DTO_categories() 
        {
            _id_cat = 0;
            _codes_cat = null;
            _name_cat = null;
            _parent_id = 0;
        }

        public DTO_categories(string Code_cat, string Name_cat, int Parent_id)
        {
            _codes_cat = Code_cat;
            _name_cat = Name_cat;
            _parent_id = Parent_id;
        }
    }
}
